package com.jbp.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 
 * 
 * @author lucheng feng
 * @email jbp@gmail.com
 * @date 2020-06-18 21:26:42
 */
@ApiModel(value="room对象",description="房间对象")
@Data
@TableName("room")
public class Room implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@ApiModelProperty(value="编号",name="id")
	@TableId
	private Integer id;
	/**
	 * 用户编号
	 */
	@ApiModelProperty(value="用户编号",name="userId")
	private Integer userId;
	/**
	 * 类型编号
	 */
	@ApiModelProperty(value="类型编号",name="typeId")
	private Integer typeId;
	/**
	 * 房间类型名称
	 */
	@ApiModelProperty(value="房间类型名称",name="typeName")
	private String typeName;
	/**
	 * 房间名
	 */
	@ApiModelProperty(value="房间名",name="name")
	private String name;
	/**
	 * 房间头像
	 */
	@ApiModelProperty(value="房间头像",name="roomImg")
	private String roomImg;
	/**
	 * 房间编号
	 */
	@ApiModelProperty(value="房间编号",name="roomKey")
	private String roomKey;
	/**
	 * 欢迎语
	 */
	@ApiModelProperty(value="欢迎语",name="welcome")
	private String welcome;
	/**
	 * 玩法
	 */
	@ApiModelProperty(value="玩法",name="play")
	private String play;
	/**
	 * 心动值开关 0 关闭 1 开启
	 */
	@ApiModelProperty(value="心动值开关 0 关闭 1 开启",name="onCharm")
	private Integer onCharm;
	/**
	 * 礼物特效 0 关闭 1 开启
	 */
	@ApiModelProperty(value="礼物特效 0 关闭 1 开启",name="isGift")
	private Integer isGift;

	private Integer luckMsg;
	/**
	 * 公屏 0 关闭 1 开启
	 */
	@ApiModelProperty(value="公屏 0 关闭 1 开启",name="screen")
	private Integer screen;
	/**
	 * 是否加密 0 不加密 1 加密
	 */
	@ApiModelProperty(value="是否加密 0 不加密 1 加密",name="encryption")
	private Integer encryption;
	/**
	 * 密码
	 */
	@ApiModelProperty(value="密码",name="password")
	private String password;
	/**
	 * 人气值
	 */
	@ApiModelProperty(value="礼物人气值",name="mood")
	private Integer mood;
	/**
	 * 是否上推荐 0 否 1 是
	 */
	@ApiModelProperty(value="是否上推荐 0 否 1 是",name="isPush")
	private Integer isPush;
	/**
	 * 
	 */
	@ApiModelProperty(value="创建时间",name="createTime")
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	private Date createTime;
	/**
	 * 
	 */
	@ApiModelProperty(value="修改时间",name="updateTime")
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	private Date updateTime;
	@ApiModelProperty(value="房间号",name="uuid")
	private String uuid;

	@ApiModelProperty(value="房间麦位列表",name="wheats")
	@TableField(exist = false)
	private List<RoomWheat> wheats;

	@ApiModelProperty(value="房间用户列表",name="wheats")
	@TableField(exist = false)
	private List<RoomUserWheat> userWheats;

	@ApiModelProperty(value="是否收藏 yes是 no否",name="isCollect")
	@TableField(exist = false)
	private String isCollect = "no";

	@ApiModelProperty(value="bear禁入mute禁言all双禁",name="type")
	@TableField(exist = false)
	private String type;

	@ApiModelProperty(value="当前页",name="page")
	@TableField(exist = false)
	private Integer page;

	@ApiModelProperty(value="房主头像",name="img")
	@TableField(exist = false)
	private String img;

	@ApiModelProperty(value="房间背景",name="img")
	@TableField(exist = false)
	private String background;

	@ApiModelProperty(value="房间固定心动值",name="fixationMood")
	private Integer fixationMood;
	//固定位置
	private Integer pin;

	@ApiModelProperty(value="人气值",name="peopleMood")
	private Integer peopleMood;

	private Integer autoIncome;

	private BigDecimal incomeRate;

	//用户角色  master房主 manager管理
	@TableField(exist = false)
	private String role;

	//标签
	private Integer tagId;

	@TableField(exist = false)
	private String tagImage;

	//状态 'normal','hidden','delete'
	private String status;
}
